//
//  PhotoManager.h
//  JBPlatform
//
//  Created by yanhuilv on 16/7/24.
//  Copyright © 2016年 yanhuilv. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "VPImageCropperViewController.h"

@class PhotoManager;

@protocol PhotoDelegate <NSObject>

- (void)imageCropper:(VPImageCropperViewController *)cropperViewController didFinished:(UIImage *)editedImage;
- (void)imageCropperDidCancel:(VPImageCropperViewController *)cropperViewController;
- (void)finish:(UIViewController*) controller;
- (CGRect)getCropSize;

@optional
//选取多张图片  
- (void)imageCropperSelectImages:(NSArray *)images sourceAssets:(NSArray *)assets;

@end

@interface PhotoManager : NSObject<UIActionSheetDelegate>

@property (nonatomic, assign) id<PhotoDelegate> delegate;

//是不是不需要裁剪 默认是需要剪裁 
@property (nonatomic, assign) BOOL unNeedCrop;

//需要添加多张图片
@property (nonatomic, assign) BOOL needImages;

//最多图片数据
@property (nonatomic, assign)NSInteger maxImageCount;

@end
